<?php
class CommonActiveRecord extends CActiveRecord {
	public function headMap($fields){
		$headMap = array();
		foreach($fields as $f){
			$headMap[$f] = $this->getAttributeLabel($f);
		}
		return $headMap;
	}
	
}

?>